<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/dayjs/1.11.5/dayjs.min.js"></script> -->
</head>
<body>
    <div id="app">
        <Hello></Hello>
    </div>

    <template id="hello">
        <!-- template 中的直接子元素只能有一个 -->
        <!-- <div>1</div>
        <div>2</div> -->
        <div>
            hello
            <br>
            其他元素可以放在这里div中
            <br>
        </div>
    </template>
</body>
<script>
    //组件起名：大驼峰 / -连接
Vue.component('Hello');
 Vue.component('HeadTitle')   
   
 new Vue({//创建根组件
   el:"#app",
  
    
   })
</script>
</html>